package net.qhzw.vip.qiyu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import net.qhzw.vip.qiyu.entity.SysTenantIdentity;
import net.qhzw.vip.qiyu.mapper.SysTenantIdentityMapper;
import net.qhzw.vip.qiyu.service.SysTenantIdentityService;
import org.springframework.stereotype.Service;

import java.io.Serializable;

@Service
public class SysTenantIdentityServiceImpl extends ServiceImpl<SysTenantIdentityMapper, SysTenantIdentity>
        implements SysTenantIdentityService {

    @Override
    public SysTenantIdentity getById(Serializable id) {
        return getOne(new LambdaQueryWrapper<SysTenantIdentity>()
                .eq(id != null, SysTenantIdentity::getId, id)
                .eq(SysTenantIdentity::getStatus, 1));
    }
}
